package com.fh.service.impl;

import com.fh.mapper.TOrderinfoMapper;
import com.fh.model.TOrderinfo;
import com.fh.service.OrderInfoService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class OrderInfoServiceImpl implements OrderInfoService {
    @Resource
    private TOrderinfoMapper orderinfoMapper;

    public void addOrderInfoService(List<TOrderinfo> orderinfoList) {
        orderinfoMapper.addOrderInfoService(orderinfoList);
    }


    public List<TOrderinfo> queryProductByOrderId(Long orderId) {
        List<TOrderinfo> orderinfoList=  orderinfoMapper.queryProductByOrderId(orderId);
        return orderinfoList;
    }
}
